/* Layout */
html {display: flex; flex-direction: column;} /* IE fix */
body {
  display: flex; /* crée un contexte flex pour ses enfants */
  flex-direction: column; /* affichage vertical */
  min-height: 100vh; /* toute la hauteur du viewport (compatible IE9+) */
}
.wrapper {
  display: block; /* IE fix */
  flex: 1 1 auto; /* occupe la hauteur restante */
  display: flex; /* crée un contexte flex pour ses enfants */
  flex-direction: row; /* affichage horizontal */
}
nav {
  width: 15em;
}
.content {
  display: block; /* IE fix */
  flex: 1; /* occupe la largeur restante */
}


/* Responsive */

@media (max-width: 640px) {
	body {
  min-height: 0; 
}
	.wrapper {
    flex-direction: column;
  }
	.content {
		flex-basis: auto;
	}
  nav {
    width: auto;
    order: 1;
  }
}

/* Decoration */

body {
	margin: 0;
	background: #fff;
	font-family: "Century Gothic", helvetica, arial, sans-serif;
	font-size: 1.1em;
}
header, nav, section, footer {
	padding: 10px;
	margin: 0;
	border: 2px solid #fff;
	border-radius: 10px;
	color: #fff;
}
header {
    display: flex;
    justify-content: center;
	background: rgb(44,108,181);
}
.vignette>img {
    width: 110px;
    border-radius: 50%;
}
h1{
    margin-left: 20px;
    margin-right: 20px;
}
nav {
	background: rgba(247,148,29);
}
nav a {
  display: block;
  padding: .5em 1em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
section {
	background: rgb(165,196,231);
}
footer {
	background: rgb(181,225,233);
  text-align: center;
}

/* primary links */

.nav-link {
  display: block;
  position: relative;
  padding: 1rem;
  border: 0;
  text-decoration: none;
 }
.nav-link:focus {
  outline: 0;
  font-weight: bold;
}

/* sub-nav and links */
.sub-nav {
  background: rgba(247,148,29);
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.sub-nav a { 
  display: block;
  text-decoration: none;
  font-size: 0.8em;
  color: #fff;
}
.sub-nav a:hover,
.sub-nav a:focus {
    text-decoration: underline;
}
.sub-nav ul {
  list-style: none;
  margin-left: -2em;
  margin-bottom: 3em;
}
/* icon */
.nav-link:not(:only-child)::before,
.nav-link:not(:only-child)::after {
  content: "";
  position: absolute;
  top: 50%; 
  transform: translateY(-50%);
  width: 10px;
  height: 3px;
  background: #fff;
  transition: .25s;
  will-change: transform, bottom, left, right;
}
.nav-link:not(:only-child)::before {
  transform: rotate(-45deg);
  right: 1rem;
}
.nav-link:not(:only-child)::after {
  transform: rotate(45deg);
  right: calc(1rem + 5px);
}

/* icon's animation */

.nav-link:not(:only-child):focus::before {
   transform: rotate(45deg) translateZ(0);
 }
.nav-link:not(:only-child):focus::after {
   transform: rotate(-45deg) translateZ(0);
 }

/* hiding / showing sub-nav  */ 

.nav-link + * {
  max-height: 0;
  overflow: hidden;
  transition:  max-height .35s;
}
.nav-link:not(:only-child):focus + * {
  max-height: 20em;
}
.nav-link:not(:only-child):focus {pointer-events:none;}
.nav-link:not(:only-child):not(:focus) { pointer-events:auto }


/* Galerie Photos */

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
	background: rgb(165,196,231);
}

.gallery > img {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    max-width: 500px;
    max-height: 200px;
    margin: 5px;
    object-fit: cover;
}

/* Memento */

.content_home {
    display: flex;
    flex: 1;
    padding-left: 3em;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

table, tr, th, td {
    border-style: solid;
    border-collapse: collapse;
    text-align: center;
    padding: 1em;
}